<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of AdminSession
 *
 * @author anhducbkhn
 */
class AdminSession extends CHttpSession {
    //put your code here

    const REMEMBER_DAYS = 30;

    public $area = '';
    public $allowAutoLogin = TRUE;

    public function init() {
        parent::init();
        $this->area = Yii::app()->params['area']['admincp'];
    }

    public function setVar($key, $val) {
        Yii::app()->admin->$key = $val;
    }

    public function getVar($key) {
        Yii::app()->admin->$key;
    }

}
